﻿<%@ Page Title="" Language="C#" MasterPageFile="~/global.Master" AutoEventWireup="true" CodeBehind="ManagerPatient.aspx.cs" Inherits="Hospital.ManagerPatient" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="center">
    <div id="title">Danh sách bệnh nhân</div>
    <div class="inline"><h3 >Ngoại trú/Nội trú:</h3>
        <asp:DropDownList ID="listType" runat="server" AutoPostBack="true" Width="100px" OnSelectedIndexChanged="listType_SelectedIndexChanged"></asp:DropDownList>
        <asp:DropDownList ID="listPhong" runat="server" AutoPostBack="true" Width="100px"></asp:DropDownList>
    </div>
    <div id="gridview"><asp:GridView  ID="grvPatient" runat="server" Width="691px" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" HorizontalAlign="Left" AutoGenerateSelectButton="True" GridLines="Horizontal" OnSelectedIndexChanged="grvPatient_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="#F7F7F7" />
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
        </asp:GridView>
    </div>
    <div>
        <table class="table">
            <caption id="title">Thông tin bệnh nhân</caption>
            <tr>
                <td>Mã BN:</td>
                <td>
                    <asp:TextBox ID="txtCode" runat="server" Enabled="false" Width="50px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Tên bệnh nhân:</td>
                <td>
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Giới tính:</td>
                <td>
                    <asp:DropDownList ID="listGender" runat="server" Width="60px"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Tuổi:</td>
                <td><asp:TextBox ID="txtAge" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Địa chỉ:</td>
                <td>
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Số điện thoại:</td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Tình trạng hôn nhân:</td>
                <td>
                    <asp:TextBox ID="txtMarial" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table class="table">
            <caption id="title">Thông tin thân nhân</caption>
            <tr>
                <td>Họ tên thân nhân:</td>
                <td>
                    <asp:TextBox ID="txtNameTN" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Địa chỉ:</td>
                <td>
                    <asp:TextBox ID="txtAddressTN" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Số điện thoại:</td>
                <td>
                    <asp:TextBox ID="txtPhoneTN" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Quan hệ:</td>
                <td>
                    <asp:TextBox ID="txtRelation" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Chuyển đến phòng:</td>
                <td>
                    <asp:DropDownList ID="listClinic" runat="server"></asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
    <div id="function">
        <asp:Button ID="btnInsert" runat="server" Text="Tiếp nhận" OnClick="btnInsert_Click"></asp:Button>
        <asp:Button ID="btnDelete" runat="server" Text="Xóa" OnClick="btnDelete_Click"></asp:Button>
        <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" OnClick="btnUpdate_Click"></asp:Button>
        <asp:Button ID="txtReset" runat="server" Text="Làm mới" OnClick="txtReset_Click"></asp:Button>
    </div>
</div>
</asp:Content>
